package com.yzjs.wx.response;


import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(
        name = "xml",
        strict = false
)
public class WxPaySandboxKeyResponse {
    @Element(
            name = "return_code"
    )
    private String returnCode;
    @Element(
            name = "return_msg",
            required = false
    )
    private String returnMsg;
    @Element(
            name = "mch_id",
            required = false
    )
    private String mchId;
    @Element(
            name = "sandbox_signkey",
            required = false
    )
    private String sandboxSignkey;

    public WxPaySandboxKeyResponse() {
    }

    public String getReturnCode() {
        return this.returnCode;
    }

    public String getReturnMsg() {
        return this.returnMsg;
    }

    public String getMchId() {
        return this.mchId;
    }

    public String getSandboxSignkey() {
        return this.sandboxSignkey;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setSandboxSignkey(String sandboxSignkey) {
        this.sandboxSignkey = sandboxSignkey;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WxPaySandboxKeyResponse)) {
            return false;
        } else {
            WxPaySandboxKeyResponse other = (WxPaySandboxKeyResponse)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$returnCode = this.getReturnCode();
                    Object other$returnCode = other.getReturnCode();
                    if (this$returnCode == null) {
                        if (other$returnCode == null) {
                            break label59;
                        }
                    } else if (this$returnCode.equals(other$returnCode)) {
                        break label59;
                    }

                    return false;
                }

                Object this$returnMsg = this.getReturnMsg();
                Object other$returnMsg = other.getReturnMsg();
                if (this$returnMsg == null) {
                    if (other$returnMsg != null) {
                        return false;
                    }
                } else if (!this$returnMsg.equals(other$returnMsg)) {
                    return false;
                }

                Object this$mchId = this.getMchId();
                Object other$mchId = other.getMchId();
                if (this$mchId == null) {
                    if (other$mchId != null) {
                        return false;
                    }
                } else if (!this$mchId.equals(other$mchId)) {
                    return false;
                }

                Object this$sandboxSignkey = this.getSandboxSignkey();
                Object other$sandboxSignkey = other.getSandboxSignkey();
                if (this$sandboxSignkey == null) {
                    if (other$sandboxSignkey != null) {
                        return false;
                    }
                } else if (!this$sandboxSignkey.equals(other$sandboxSignkey)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WxPaySandboxKeyResponse;
    }



    public String toString() {
        return "WxPaySandboxKeyResponse(returnCode=" + this.getReturnCode() + ", returnMsg=" + this.getReturnMsg() + ", mchId=" + this.getMchId() + ", sandboxSignkey=" + this.getSandboxSignkey() + ")";
    }
}
